package com.ec.bl.domain.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.math.BigDecimal;

@Data
public class RefundRequest {
    @NotNull(message = "账单ID不能为空")
    private Long billId;

    @NotNull(message = "老人用户ID不能为空")
    private Long elderlyUserId;

    @NotNull(message = "退款金额不能为空")
    @Positive(message = "退款金额必须大于0")
    private BigDecimal amount;

    @NotBlank(message = "退款原因不能为空")
    private String reason;
}